module ApplicationHelper
  def static_pages_list
    @static_pages = StaticPage.select([:title, :permalink]).all(:order => "id")
    content = ""
    @static_pages.each do |page|
      content += "<li><a class=\"page-link\" href=\"/static/#{page.permalink}\">#{page.title}</a></li>\n"
    end
    return content
  end
end
